﻿@model Fcom.VNInsurance.Web.Models.CPInfo
@{
   
    var LangProduct = (Fcom.VNInsurance.Web.Models.ProductLang)ViewBag.LangProduct;
    var BaseProduct = (Fcom.VNInsurance.Web.Models.Product)ViewBag.BaseProduct;
    var CurrentLang = (Fcom.VNInsurance.Web.Models.Language)ViewBag.CurrentLang;
    ViewBag.Title =@Fcom.VNInsurance.Web.LangResource.Layout.lblPolicy+" "+ LangProduct.DisplayName;
    Fcom.VNInsurance.Web.Models.clInfo clinfo = null;
    if (Session["clInfo"] != null)
    {
        clinfo = (Fcom.VNInsurance.Web.Models.clInfo)Session["clInfo"];
    }
    var LangCat = (Fcom.VNInsurance.Web.Models.ProductCatLang)ViewBag.LangCat;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="container">
  <img alt="VNBaoHiem"  src="@Url.Content("~/Content/images/ProductBaner/"+BaseProduct.ProductBaner)" style="height:200px;width:100%" class="img-responsive"/>
</div>

<div class="container">
    <div class="row" style="margin-bottom:10px">
            <div class="col-lg-6">
                 <ul class="breadcrumb" style="margin-bottom:0px !important">
                      <li><a href="@Url.Action("Index","Home")">@Fcom.VNInsurance.Web.LangResource.Layout.lblHome</a></li>
                      <li><a href="@Url.Action("ProductCat", "Product", new {pCat=@LangCat.CatID})">@LangCat.DisplayName</a></li>
                      <li class="active">@LangProduct.DisplayName</li>
                   </ul>
            </div>
            <div class="col-lg-6"> 
                 <div class="wizard-steps" >
                   @if (clinfo == null)
                   {
                       <div class="active-step"><a href="@Url.Action("ProductDetail", "Product", new { pID=@LangProduct.ProductID,title=LangProduct.DisplayName.Replace(" ","-")})"><span>1</span> @Fcom.VNInsurance.Web.LangResource.Layout.lblYourInfo</a></div>
                         <div class="#"><a href="#"><span>2</span> @Fcom.VNInsurance.Web.LangResource.Layout.lblCompareText</a></div>
                  
                   }
                    else
                   { 
                  <div class="completed-step"><a href="@Url.Action("ProductDetail", "Product", new { pID=@LangProduct.ProductID,title=LangProduct.DisplayName.Replace(" ","-"),step="1"})"><span>1</span> @Fcom.VNInsurance.Web.LangResource.Layout.lblYourInfo</a></div>
                  <div class="completed-step"><a href="@Url.Action("Compare", "Product", new { pID=@LangProduct.ProductID,title=LangProduct.DisplayName.Replace(" ","-")})"><span>2</span> @Fcom.VNInsurance.Web.LangResource.Layout.lblCompareText</a></div>
                   }
                   <div class="active-step"><a href="#"><span>3</span> @Fcom.VNInsurance.Web.LangResource.Layout.lblPolicy</a></div>
                  <div><a href="#"><span>4</span> @Fcom.VNInsurance.Web.LangResource.Layout.lblPayment</a></div>
                 </div>
            </div>
    </div>
      
</div>
<div class="container">
    <div class="row" style="padding-left:10px;">
        <div class="col-lg-6">
        <legend ><img alt="VNBaoHiem"  src="@Url.Content("~/Content/images/n3.png")" class="img-responsive" style="margin-top:-6px;"/> @Fcom.VNInsurance.Web.LangResource.Layout.lblPolicy</legend>
         </div> <div class="col-lg-6">
                @Fcom.VNInsurance.Web.LangResource.Layout.lblPleasePolicy
             </div>
     </div>
     <div class="row">
          <div class="col-lg-6">
              <form method="post" action="@Url.Action("PolicySave","Product")">
                  <div class="row">
                    <div class="col-lg-2"></div>
                    <div class="col-lg-6">
                          <input type="hidden" value="@Model.CProductID" name="cproductid" />
                          <div class="form-group" >
                              <label for="joinnumber" style="padding-left:10px;">@Fcom.VNInsurance.Web.LangResource.Layout.lblJoinnumber</label>
                              <input type="text" style="text-align:right" name="joinnumber" class="form-control" id="joinnumber" value="1">
                            </div>
                         <div class="form-group" >
                              <label style="padding-left:10px;">@Fcom.VNInsurance.Web.LangResource.Layout.lblInsuranceFare (@CurrentLang.MoneyUnit)</label>
                              <input type="text" class="form-control"  style="text-align:right" value="@String.Format("{0:#,###}",Model.Fare)" readonly>
                             <input type="hidden" value="@Model.Fare" />
                            </div>
                         <div class="form-group" >
                              <label style="color:#ff6a00;padding-left:10px;">@Fcom.VNInsurance.Web.LangResource.Layout.lblTotalFare</label><br />
                              <label style="color:#000;float:right; font-size:18px">@String.Format("{0:#,###}",Model.Fare) @CurrentLang.MoneyUnit</label>
                          </div>
                         <div class="form-group" style="text-align:right;padding-top:15px" >  
                            
                            <button type="submit" class="btn btn-success">@Fcom.VNInsurance.Web.LangResource.Layout.lblCompletePolicy</button>
                                     
                         </div>
                     </div>
                     <div class="col-lg-4"></div>
                    </div> 
         
              </form>
         </div>
         <div class="col-lg-6">
             <ul class="list-group">
               <li class="list-group-item"><h3 style="color:#a60002">@Model.ProductName</h3></li>
              <li class="list-group-item"><img alt="VNBaoHiem"  src="@Url.Content("~/Content/images/CompanyLogo/"+Model.CompanyLogo)" class="img-responsive" /></li>
              <li class="list-group-item">@Fcom.VNInsurance.Web.LangResource.Layout.lblCompany: <b>@Model.CompanyName</b></li>
              <li class="list-group-item">@Fcom.VNInsurance.Web.LangResource.Layout.lblEmail: <b>@Model.email</b></li>
              <li class="list-group-item">@Fcom.VNInsurance.Web.LangResource.Layout.lblAddress: <b>@Model.address</b></li>
            </ul>
   
         </div>
        
     </div>
</div>
<div class="container">
    <div class="panel">
                <div class="panel-heading"><b>@Fcom.VNInsurance.Web.LangResource.Layout.lblBenefit</b></div>
                
                    @Html.Raw(HttpUtility.HtmlDecode(Model.Benefit))
     </div>
    <div class="panel">
                <div class="panel-heading"><b>@Fcom.VNInsurance.Web.LangResource.Layout.lblFuture</b></div>
                
                    @Html.Raw(HttpUtility.HtmlDecode(Model.Future))
     </div>
     <div class="panel">
                <div class="panel-heading"><b>@Fcom.VNInsurance.Web.LangResource.Layout.lblMoreinfo</b></div>
                
                    @Html.Raw(HttpUtility.HtmlDecode(Model.MoreInfo))
     </div>
</div>